package com.ftg.learn.chapter08.baidicheng.goose;

/**
 * 人 类
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/7/23 13:12
 */

public class Human {

    String name;

    public void look(Position a1) {
        System.out.println(this.getName() + "看到鹅的" + a1.getAppearance() + a1.getPositionname());
    }
    public void look1(Water a1) {
        System.out.println(this.getName() + "看到鹅的" + a1.getColor()+"水");
    }

    public void listen(Goose1 a1){
        System.out.print(this.getName()+"听到了\t");
        a1.shout(5);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
